// @FileName  :stack.c
// @Time      :2024/4/5 0:04
// @Author    :YKW
//# include <bits/stdc++.h>
//using namespace std;
# include <stdio.h>
# include <stdlib.h>
# include <math.h>
# include <string.h>
# include <stdlib.h>
/*
//t1
int _stack[108];
int main(){
    int op,num,top=-1;
    while ((scanf("%d",&op))!=EOF){
        if(op==1){//入栈
            scanf("%d",&num);
            if(top==100) printf("error ");
            else _stack[++top]=num;
        }else if(op==0){//出栈
            if(top==-1) printf("error ");
            else printf("%d ",_stack[top--]);
        }else if(op==-1)
            break;
    }
}*/
//t6
